package com.ylink.lkx.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value="error")
public class BaseErrorController implements ErrorController{
	
	private static final Logger logger = LoggerFactory.getLogger(BaseErrorController.class);

	@Override
	public String getErrorPath() {
		logger.info("出错你    ....");
		return "comm/error";
	}

	@RequestMapping
	public String error() {
		return getErrorPath();
	}
	
}
